﻿using System;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Activation;

namespace SlSyncWeb
{
    
    [AspNetCompatibilityRequirements(RequirementsMode=AspNetCompatibilityRequirementsMode.Allowed)]
    public class ApplicationService : IApplicationService
    {
        // Add more operations here and mark them with [OperationContract]
        public string Lookup(string i)
        {
            if (i=="1")
                return "OK";
            return "KO";
        }

        public string GetData(string s)
        {
            return "returned string: "+s;
        }
    }

    [ServiceContract(Namespace="")]
    public interface IApplicationService
    {
        [OperationContract]
        string Lookup(string i);
        [OperationContract]
        string GetData(string s);
    }
}
